package com.oo.polymorphic_4.area;

import java.util.Scanner;

/**
 * Round--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 16:23
 **/
public class Round extends Shape {

    public Round() {
    }

    public Round(String name) {
        super(name);
    }

    @Override
    public void getArea() {
        System.out.println("请输入圆形的半径：");
        Scanner sc = new Scanner(System.in);
        int radius = sc.nextInt();
        System.out.println("圆形的面积是："+radius*radius*Math.PI);
    }
}
